home *** CD-ROM | disk | FTP | other *** search
/ Suzy B Software 2 / Suzy B Software CD-ROM 2 (1994).iso / extras / programm / gemfsc20 / gemfsc20.lzh / GEMFUNCS / GRFXDRAG.C < prev    next >
C/C++ Source or Header  |  1993-02-01  |  714b  |  26 lines

  1. /**************************************************************************
  2.  * GRFXDRAG.C - Extended graf_dragbox() function.
  3.  *************************************************************************/
  4.  
  5. #include "gemfintl.h"
  6.  
  7. short grfx_dragbox(startrect, boundrect, endrect)
  8.     register GRECT *startrect;
  9.     register GRECT *boundrect;
  10.     register GRECT *endrect;
  11. {
  12.     if (boundrect == NULL) {
  13.         boundrect = &gl_rwdesk;
  14.     }
  15.  
  16.     endrect->g_w = startrect->g_w;
  17.     endrect->g_h = startrect->g_h;
  18.  
  19.     return graf_dragbox(startrect->g_w, startrect->g_h,
  20.                         startrect->g_x, startrect->g_y,
  21.                         boundrect->g_x, boundrect->g_y,
  22.                         boundrect->g_w, boundrect->g_h,
  23.                         &endrect->g_x,    &endrect->g_y);
  24.  
  25. }
  26.